lib/repo: For bare-user, mask content object modes with 0775
authorColin Walters <walters@verbum.org>
Mon, 5 Jun 2017 15:32:52 +0000 (11:32 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 8 Jun 2017 06:50:16 +0000 (06:50 +0000)
commit5913b2294490a1f85d4b617fdcc9455ed0bc63a2
tree9c29d4c04a22ff8a629c1039f313f5caeb05efde
parentd3900f90f4ca3fbded4ef5a75856dc9036037348
lib/repo: For bare-user, mask content object modes with 0775

Having every object in a bare-user repo (and checkouts) be executable
is ugly.  I can't think of a good reason to do that; they should only
be executable if their input is.  This does
for `bare-user` what we did for `bare-user-only` in
https://github.com/ostreedev/ostree/pull/909
It's also a stronger version of what we do with `checkout -U` in suppressing
suid - here we also strip world-writable files and the sticky bit (even though
that's meaningless today, it might not be in the future).

Closes: https://github.com/ostreedev/ostree/issues/907
Closes: #908
Approved by: alexlarsson
src/libostree/ostree-repo-commit.c
tests/basic-test.sh
tests/libtest.sh
tests/test-basic-user.sh